package com.jinlingxiu.app.di

import com.jinlingxiu.app.mvp.contract.LoginContract
import com.jinlingxiu.app.mvp.model.LoginModel
import com.jinlingxiu.app.mvp.presenter.LoginPresenter
import com.jinlingxiu.app.mvp.ui.activity.LoginActivity
import org.koin.dsl.module

val LoginModule = module {
    scope<LoginActivity> {
        scoped<LoginContract.Model> { LoginModel(get()) }
        scoped {
            LoginPresenter(get(), this.getSource())
        }
    }
}
